package a7;

public class LatitudeAndLongitue {

	public static void main(String[] args) 
	{
		String [] [] grid=new String [10] [10];	// []right []down
		for( int i=0; i<10;i++)				//latitude
		{
			for(int j=0;j<10;j++)			//longitude
			{
				if((i+j)%2==1)			//if sum is odd
					grid[i][j]="[O]";
				else
					grid[i][j]="[X]";
			}
		}
		for( int i=0; i<10;i++)		
		{
			System.out.println();
			for(int j=0;j<10;j++)
			{
			System.out.print(grid[i][j]);	
			}
		}
		
		
		
		
	}

}
